<template>
  <!-- <transition name="fade"> -->
    <div class="pane" v-show="show">
      <slot></slot>
    </div>  
  <!-- </transition> -->
</template>

<script>
export default {
  name: 'pane',
  props: {
    canClose: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      title: 'tab窗格',
      show: false
    }
  },
  beforeDestroy() {
    // console.log('销毁')
    this.hackReset = false;
  },
}
</script>

<style lang="less" scoped>
.pane {
  position: relative;
  // top: 0;
  // left: 0;
  padding: 8px;
  box-sizing: border-box;
}
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
</style>
